﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
    public class AdvertiseService
    {
        private readonly AdvertiseController _advertiseController = new AdvertiseController();

        #region [Advertise_GetByAll]

        public DataTable Advertise_GetByAll()
        {
            return _advertiseController.Advertise_GetByAll();
        }

        #endregion

        #region [Advertise_GetById]

        public DataTable Advertise_GetById(int id)
        {
            return _advertiseController.Advertise_GetById(id);
        }

        #endregion

        #region [Advertise_GetByPositionStatus]

        public DataTable Advertise_GetByPositionStatus(int position, int status)
        {
            return _advertiseController.Advertise_GetByPositionStatus(position, status);
        }

        #endregion

        #region [Advertise_Insert]

        public void Advertise_Insert(AdvertiseInfo advertise)
        {
            _advertiseController.Advertise_Insert(advertise);
        }

        #endregion

        #region [Advertise_Update]

        public void Advertise_Update(AdvertiseInfo advertise)
        {
            _advertiseController.Advertise_Update(advertise);
        }

        #endregion

        #region [Advertise_Delete]

        public void Advertise_Delete(int id)
        {
            _advertiseController.Advertise_Delete(id);
        }

        #endregion

        #region [Advertise_ActiveStatus]

        public void Advertise_ActiveStatus(int id, int status)
        {
          _advertiseController.Advertise_ActiveStatus(id,status);
        }

        #endregion
    }
}